import Mock from "mockjs";

export const mockBaseUrl = "http://localhost:3001/"

// export const myMock = (
//   path: string,
//   method: "get" | "post",
//   callback: (options: any) => any,
//   customBaseURL?: string
// ) => {
//   Mock.mock(`${customBaseURL || baseURL}${path}`, method, callback);
// };

export const myMock = (
  path,
  method,
  callback,
) => {
  Mock.mock(`${mockBaseUrl}${path}`, method, callback);
};
